﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace GoShopping.Web.UserControls
{
    public partial class test4 : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetDDLSearch();
            }
        }
        private void SetDDLSearch()
        {
            all_categories.Items.Clear();
            ListItem li1 = new ListItem("所有", "All");
            ListItem li2 = new ListItem("商品名", "Name");
            ListItem li3 = new ListItem("商品类型", "ProductTypeID");
            ListItem li4 = new ListItem("供应商", "SupplyerID");
            //ListItem li5 = new ListItem("上架?", "IsShowOnSale");
            all_categories.Items.Add(li1);
            all_categories.Items.Add(li2);
            all_categories.Items.Add(li3);
            all_categories.Items.Add(li4);
            //ddlSearchCondition.Items.Add(li5);
        }
    }
}